package edu.fjut.se1603.yuan.util;

public class MoneyUtil {
    /**
     * 返回余额差
     * @param tarMoney 需要减少的钱
     * @param subMoney 被减的钱
     * @return double 余额差
     */
    public static double subMoney(double tarMoney, double subMoney) {
        return tarMoney - subMoney;
    }

    /**
     * 返回余额合计
     * @param tarMoney 需要增加的钱
     * @param addMoney 被加的钱
     * @return double 余额合计
     */
    public static double addMoney(double tarMoney, double addMoney) {
        return tarMoney + addMoney;
    }
}
